<?php
	@session_start();
	include("../inc/common_variables.php");
	include("../../connect/connect_mysql.php");
	
	$user= $_POST["username"];
	$pass= $_POST["password"];

	$sql = "SELECT member_id FROM member WHERE username = '$user' AND password = '$pass'";
	mysql_query ("SET NAMES 'utf8'");
 	$result = GetFirstItemFromDB($sql);
	if ($result){
		$_SESSION[$ssUserID] = $user;
		echo 1;
	}else{
		echo 0;
	}
	
?>